package com.service;

import javax.annotation.Resource;
import com.entity.*;
import org.springframework.stereotype.Service;
import com.dao.*;
@Service
public class FirstCategoryService {
	@Resource
	private FirstCategoryDao dao;
	
	public FirstCategory getFirstCategoryByName(String name){
		String hql="from FirstCategory where name='"+name+"'";
		return dao.getFirstCategory(hql);
	}
}
